/* 对话导出组件样式 */

.chat-export-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.chat-export-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-export-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-export-header h3 {
    margin: 0;
    color: white;
    font-size: 1.3em;
    font-weight: 600;
}

.chat-export-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.chat-export-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.chat-export-content {
    padding: 25px;
}

.chat-export-stats {
    margin-bottom: 25px;
}

.chat-export-stats h4 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

.stat-value {
    color: white;
    font-weight: 600;
    font-size: 1em;
}

.chat-export-format {
    margin-bottom: 25px;
}

.chat-export-format h4 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.format-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.format-option {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

.format-option:hover {
    background: rgba(255, 255, 255, 0.15);
}

.format-option input[type="radio"] {
    margin-right: 12px;
    accent-color: #4CAF50;
}

.format-option input[type="radio"]:checked+span {
    color: #4CAF50;
    font-weight: 600;
}

.format-option span {
    color: white;
    font-size: 1em;
    display: block;
    margin-bottom: 4px;
}

.format-option small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
    display: block;
}

.chat-export-actions {
    text-align: center;
}

.chat-export-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    min-width: 200px;
}

.chat-export-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.chat-export-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.no-data-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    margin-top: 15px;
    text-align: center;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .chat-export-panel {
        width: 95%;
        margin: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .chat-export-header {
        padding: 15px 20px;
    }

    .chat-export-content {
        padding: 20px;
    }
}